<?php

namespace app\common\model\housing;

use app\common\model\BaseModel;
use app\common\model\users\UsersModel;

class HousingLogModel extends BaseModel
{

    public static function tablePk(): ?string
    {
        return "id";
    }

    public static function tableName(): string
    {
        return "housing_log";
    }

    public function userInfo()
    {
        return $this->hasOne(UsersModel::class, 'id', 'user_id');
    }

}